﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data;
using V5_Common;

namespace V5_EShop.Controls
{
    public partial class getShoppingCartLable : BasicControl
    {
        public int pro_total = 0, pro_price = 0;
        protected void Page_Load(object sender, EventArgs e)
        {
            DataTable dtProducts = new DataTable();
            if (Session["dtProducts"] != null)
            {
                dtProducts = (DataTable)Session["dtProducts"];
                pro_total = dtProducts.Rows.Count;
                for (int i = 0; i < dtProducts.Rows.Count; i++)
                {
                    //计算价格
                    pro_price += Input.SetInt(dtProducts.Rows[i]["prototalprice"].ToString());
                }
            }
        }
    }
}